home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / ada / gnat1792.zip / gnat179b / t-adainc / a-taside.ads < prev    next >
Text File  |  1994-05-19  |  3KB  |  57 lines

  1. ------------------------------------------------------------------------------
  2. --                                                                          --
  3. --                         GNAT RUNTIME COMPONENTS                          --
  4. --                                                                          --
  5. --              A D A . T A S K _ I D E N T I F I C A T I O N               --
  6. --                                                                          --
  7. --                                 S p e c                                  --
  8. --                                                                          --
  9. --                            $Revision: 1.5 $                              --
  10. --                                                                          --
  11. --           Copyright (c) 1992,1993,1994 NYU, All Rights Reserved          --
  12. --                                                                          --
  13. -- GNAT is free software;  you can  redistribute it  and/or modify it under --
  14. -- terms of the  GNU General Public License as published  by the Free Soft- --
  15. -- ware  Foundation;  either version 2,  or (at your option) any later ver- --
  16. -- sion.  GNAT is distributed in the hope that it will be useful, but WITH- --
  17. -- OUT ANY WARRANTY;  without even the  implied warranty of MERCHANTABILITY --
  18. -- or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License --
  19. -- for  more details.  You should have  received  a copy of the GNU General --
  20. -- Public License  distributed with GNAT;  see file COPYING.  If not, write --
  21. -- to the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. --
  22. --                                                                          --
  23. ------------------------------------------------------------------------------
  24.  
  25. with System;
  26. with System.Tasking;
  27.  
  28. package Ada.Task_Identification is
  29.  
  30.    type Task_Id is private;
  31.  
  32.    Null_Task_Id : constant Task_Id;
  33.  
  34.    function  "=" (Left, Right : Task_Id) return Boolean;
  35.    pragma Inline ("=");
  36.  
  37.    function Image (T : Task_Id) return String;
  38.  
  39.    function Current_Task return Task_Id;
  40.    pragma Inline (Current_Task);
  41.  
  42.    procedure Abort_Task (T : in out Task_Id);
  43.    pragma Inline (Abort_Task);
  44.  
  45.    function Is_Terminated (T : Task_Id) return Boolean;
  46.    pragma Inline (Is_Terminated);
  47.  
  48.    function Is_Callable (T : Task_Id) return Boolean;
  49.    pragma Inline (Is_Callable);
  50.  
  51. private
  52.    type Task_Id is new System.Tasking.Task_ID;
  53.  
  54.    Null_Task_ID : constant Task_Id := Task_Id (System.Tasking.Null_Task);
  55.  
  56. end Ada.Task_Identification;
  57.